<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>expression</title>
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
    <div ng-app="">
        <h2>数字</h2>
        <p>{{5+5}}<p/>
        <h2>字符串</h2>
        <p data-ng-init="total=1;price=2">
            总数：<input ng-model="total"><br/>
            价格：<input ng-model="price"><br/>
            <span ng-bind="total*price"></span>
        </p>
        <h2>对象</h2>
        <p ng-init="user={name:'张三',age:15}">
            姓名：{{user.name}},年龄：{{user.age}}
        </p>
        <h2>数组</h2>
        <p ng-init="users=['张三','李四','王五']">
            <span ng-bind="users[0]"></span>
            <span>{{users[1]}}</span>
        </p>
    </div>
</body>
</html>